<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link href="conversation.css" rel="STYLESHEET" type="text/css">
<title>Dialogue Act Scheme List</title>
</head>
<body>
<!--        Header         -->
<jsp:include page="scripts/headerEdit.jsp" >
    <jsp:param name="title" value="Adjacency List" />
</jsp:include>
<div class="list">
	<p>
	<a href="enteradj.html">Click here</a> to add a new 
	 adjacency, or select one from the list below 
	to edit.
	</p>
	<table>
		<tr>
			<th>ID</th>
			<th>Label</th>
			<th>Description</th>
			<th></th>
		</tr>
		<c:forEach items="${adjacencies}" var="adj">
		<tr>
			<td>
				<a href="enteradj.html?adjId=<c:out value="${adj.adjacencyId}" />">
					<c:out value="${adj.adjacencyId}" />
				</a>
			</td>
			<td><c:out value="${adj.label}" /></td>
			<td><c:out value="${adj.description}" /></td>
			<td>
				<a href="enteradj.html?adjId=<c:out value="${adj.adjacencyId}" />">
					[edit]
				</a>
				<a href="adjlist.html?delAdjId=<c:out value="${adj.adjacencyId}" />">
					[delete]
				</a>
			</td>
		</tr>
		</c:forEach>
	</table>
</div>
</body>
</html>
